<template>
  <div>
    <div class="crumbs">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item><i class="el-icon-lx-copy"></i> 我的店铺 </el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="container">
      <router-view />
    </div>
  </div>
</template>

<script>
import { myShop, shopAdd, shopmModify } from '@/api/shop'

export default {
  name: 'myshop',
  data() {
    return {
      isEdit: false,
      dialogVisible: false,
      form: {
        id: 0,
        name: '',
        createdAt: 0,
      },
      cform: {},
    }
  },
  methods: {
    async modify() {
      const data = await shopmModify(this.cform)
      if (data.code !== 200) return this.$message.error('修改失败，错误码：' + data.code)
      this.$message.success('修改成功')
    },
  },
}
</script>

<style lang="scss" scoped>
.center {
  display: flex;
  justify-content: center;
}
</style>
